package cn.com.thinker.security.sdk.shiro.dto;

import cn.com.thinker.core.tools.spring.SpringContextUtils;
import cn.com.thinker.security.sdk.shiro.propertise.ShiroProperties;
import lombok.Data;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.context.annotation.DependsOn;

/**
 * Created by crazyHC on 2017/6/29.
 */
@Data
public class SsoDTO {

    private String clientAppId;
    private Boolean enabled = false;
    private String loginHandler;
    private String logoutHandler;
    private String fetchKeyUrl;
    private String securityServerUrl;
    private String securityServerLoginUrl;

    public Boolean isDiret() {
        if (securityServerUrl.contains("http://") || securityServerUrl.contains("https://")) {
            return true;
        }
        return false;
    }


}
